package cn.otrue.patienthealthmanager.activity;

import android.os.Bundle;
import android.view.View;
import cn.otrue.patienthealthmanager.R;
import cn.otrue.patienthealthmanager.view.SwitchButton;

/**
 * 找医生->开放权限
 * 
 * @author G
 * 
 */
public class DoctorAuthorityActivity extends BaseActivity {

	private SwitchButton sb_docotor_ziliao;
	private SwitchButton sb_docotor_shuju;
	private SwitchButton sb_docotor_huizhen;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.acticity_dactor_sconi);
		initView();
	}

	private void initView() {
		sb_docotor_ziliao = (SwitchButton) findViewById(R.id.sb_docotor_ziliao);
		sb_docotor_ziliao.setOnClickListener(this);
		sb_docotor_shuju = (SwitchButton) findViewById(R.id.sb_docotor_shuju);
		sb_docotor_shuju.setOnClickListener(this);
		sb_docotor_huizhen = (SwitchButton) findViewById(R.id.sb_docotor_huizhen);
		sb_docotor_huizhen.setOnClickListener(this);

	}

	public void onClick(View arg0) {
		switch (arg0.getId()) {
		case R.id.sb_docotor_ziliao:
			sb_docotor_ziliao.changeOpen();
			break;

		case R.id.sb_docotor_shuju:
			sb_docotor_shuju.changeOpen();
			break;

		case R.id.sb_docotor_huizhen:
			sb_docotor_huizhen.changeOpen();
			break;

		default:
			break;
		}

	}

}
